<html {$html_attrs}>
<head>
<title>{$caption commercial_invoices}</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
<style>
.grid_block {  
margin-top:5px;
border-collapse: collapse;
align:center;
width:95%;
border:none;
} 
.grid_block td { 
 padding: 5px; 
 margin: 0px; 
 border: solid black 1px;
}
.grid_block .gridspacing {width:20px;border-top-color:white; border-bottom-color:white;background-color:white}
@media print 
{
	a.pdf {display:none}
}
.printpage {page-break-after:always}
#selpage{margin-left:30px;}
</style> 
</head>
<body style="background-color:white">
{BEGIN body}
{$header}
{BEGIN page}

<h1>{$caption commercial_invoices}</h1>
{BEGIN page_number}
<div id='selpage'>{mlang_message PAGE1} {$pageno} {mlang_message PAGE2} {$maxpages} </div>
{END page_number}
{BEGIN pdf_block}
{BEGIN pdflink_block}
<a href=# class=pdf {$pdflink_attrs}>{mlang_message PDF_VIEW}</a>
{END pdflink_block}
{END pdf_block}

{BEGIN grid_block}

<table align="center" cellpadding=5 class="grid_block">
{BEGIN grid_header}
<tr>
{BEGIN record_header}
{BEGIN id_fieldheadercolumn}
	<td>
{BEGIN id_fieldheader}
	<b>{$label commercial_invoices id}</b>
{END id_fieldheader}
	</td>
{END id_fieldheadercolumn}
{BEGIN proforma_invoice_id_fieldheadercolumn}
	<td>
{BEGIN proforma_invoice_id_fieldheader}
	<b>{$label commercial_invoices proforma_invoice_id}</b>
{END proforma_invoice_id_fieldheader}
	</td>
{END proforma_invoice_id_fieldheadercolumn}
{BEGIN account_id_fieldheadercolumn}
	<td>
{BEGIN account_id_fieldheader}
	<b>{$label commercial_invoices account_id}</b>
{END account_id_fieldheader}
	</td>
{END account_id_fieldheadercolumn}
{BEGIN account_name_fieldheadercolumn}
	<td>
{BEGIN account_name_fieldheader}
	<b>{$label commercial_invoices account_name}</b>
{END account_name_fieldheader}
	</td>
{END account_name_fieldheadercolumn}
{BEGIN buyer_id_fieldheadercolumn}
	<td>
{BEGIN buyer_id_fieldheader}
	<b>{$label commercial_invoices buyer_id}</b>
{END buyer_id_fieldheader}
	</td>
{END buyer_id_fieldheadercolumn}
{BEGIN buyer_fieldheadercolumn}
	<td>
{BEGIN buyer_fieldheader}
	<b>{$label commercial_invoices buyer}</b>
{END buyer_fieldheader}
	</td>
{END buyer_fieldheadercolumn}
{BEGIN consignee_id_fieldheadercolumn}
	<td>
{BEGIN consignee_id_fieldheader}
	<b>{$label commercial_invoices consignee_id}</b>
{END consignee_id_fieldheader}
	</td>
{END consignee_id_fieldheadercolumn}
{BEGIN consignee_fieldheadercolumn}
	<td>
{BEGIN consignee_fieldheader}
	<b>{$label commercial_invoices consignee}</b>
{END consignee_fieldheader}
	</td>
{END consignee_fieldheadercolumn}
{BEGIN notify_id_fieldheadercolumn}
	<td>
{BEGIN notify_id_fieldheader}
	<b>{$label commercial_invoices notify_id}</b>
{END notify_id_fieldheader}
	</td>
{END notify_id_fieldheadercolumn}
{BEGIN notify_fieldheadercolumn}
	<td>
{BEGIN notify_fieldheader}
	<b>{$label commercial_invoices notify}</b>
{END notify_fieldheader}
	</td>
{END notify_fieldheadercolumn}
{BEGIN commercial_invoice_no_fieldheadercolumn}
	<td>
{BEGIN commercial_invoice_no_fieldheader}
	<b>{$label commercial_invoices commercial_invoice_no}</b>
{END commercial_invoice_no_fieldheader}
	</td>
{END commercial_invoice_no_fieldheadercolumn}
{BEGIN commercial_invoice_date_fieldheadercolumn}
	<td>
{BEGIN commercial_invoice_date_fieldheader}
	<b>{$label commercial_invoices commercial_invoice_date}</b>
{END commercial_invoice_date_fieldheader}
	</td>
{END commercial_invoice_date_fieldheadercolumn}
{BEGIN customer_purchase_order_no_fieldheadercolumn}
	<td>
{BEGIN customer_purchase_order_no_fieldheader}
	<b>{$label commercial_invoices customer_purchase_order_no}</b>
{END customer_purchase_order_no_fieldheader}
	</td>
{END customer_purchase_order_no_fieldheadercolumn}
{BEGIN bl_awb_no_fieldheadercolumn}
	<td>
{BEGIN bl_awb_no_fieldheader}
	<b>{$label commercial_invoices bl_awb_no}</b>
{END bl_awb_no_fieldheader}
	</td>
{END bl_awb_no_fieldheadercolumn}
{BEGIN country_id_fieldheadercolumn}
	<td>
{BEGIN country_id_fieldheader}
	<b>{$label commercial_invoices country_id}</b>
{END country_id_fieldheader}
	</td>
{END country_id_fieldheadercolumn}
{BEGIN export_date_fieldheadercolumn}
	<td>
{BEGIN export_date_fieldheader}
	<b>{$label commercial_invoices export_date}</b>
{END export_date_fieldheader}
	</td>
{END export_date_fieldheadercolumn}
{BEGIN payment_term_fieldheadercolumn}
	<td>
{BEGIN payment_term_fieldheader}
	<b>{$label commercial_invoices payment_term}</b>
{END payment_term_fieldheader}
	</td>
{END payment_term_fieldheadercolumn}
{BEGIN export_references_fieldheadercolumn}
	<td>
{BEGIN export_references_fieldheader}
	<b>{$label commercial_invoices export_references}</b>
{END export_references_fieldheader}
	</td>
{END export_references_fieldheadercolumn}
{BEGIN export_route_fieldheadercolumn}
	<td>
{BEGIN export_route_fieldheader}
	<b>{$label commercial_invoices export_route}</b>
{END export_route_fieldheader}
	</td>
{END export_route_fieldheadercolumn}
{BEGIN package_marks_fieldheadercolumn}
	<td>
{BEGIN package_marks_fieldheader}
	<b>{$label commercial_invoices package_marks}</b>
{END package_marks_fieldheader}
	</td>
{END package_marks_fieldheadercolumn}
{BEGIN misc_charges_fieldheadercolumn}
	<td>
{BEGIN misc_charges_fieldheader}
	<b>{$label commercial_invoices misc_charges}</b>
{END misc_charges_fieldheader}
	</td>
{END misc_charges_fieldheadercolumn}
{BEGIN certifications_fieldheadercolumn}
	<td>
{BEGIN certifications_fieldheader}
	<b>{$label commercial_invoices certifications}</b>
{END certifications_fieldheader}
	</td>
{END certifications_fieldheadercolumn}
{BEGIN endrecordheader_block}
	<td class="gridspacing">&nbsp;</td>
{END endrecordheader_block}
{END record_header}
</tr>
{END grid_header}
{BEGIN grid_row}
<tr valign=top {$rowstyle} {$rowattrs}>
{BEGIN grid_record}
{BEGIN id_fieldcolumn}
<td {$id_style}>
{$id_value}
</td>
{END id_fieldcolumn}
{BEGIN proforma_invoice_id_fieldcolumn}
<td {$proforma_invoice_id_style}>
{$proforma_invoice_id_value}
</td>
{END proforma_invoice_id_fieldcolumn}
{BEGIN account_id_fieldcolumn}
<td {$account_id_style}>
{$account_id_value}
</td>
{END account_id_fieldcolumn}
{BEGIN account_name_fieldcolumn}
<td {$account_name_style}>
{$account_name_value}
</td>
{END account_name_fieldcolumn}
{BEGIN buyer_id_fieldcolumn}
<td {$buyer_id_style}>
{$buyer_id_value}
</td>
{END buyer_id_fieldcolumn}
{BEGIN buyer_fieldcolumn}
<td {$buyer_style}>
{$buyer_value}
</td>
{END buyer_fieldcolumn}
{BEGIN consignee_id_fieldcolumn}
<td {$consignee_id_style}>
{$consignee_id_value}
</td>
{END consignee_id_fieldcolumn}
{BEGIN consignee_fieldcolumn}
<td {$consignee_style}>
{$consignee_value}
</td>
{END consignee_fieldcolumn}
{BEGIN notify_id_fieldcolumn}
<td {$notify_id_style}>
{$notify_id_value}
</td>
{END notify_id_fieldcolumn}
{BEGIN notify_fieldcolumn}
<td {$notify_style}>
{$notify_value}
</td>
{END notify_fieldcolumn}
{BEGIN commercial_invoice_no_fieldcolumn}
<td {$commercial_invoice_no_style}>
{$commercial_invoice_no_value}
</td>
{END commercial_invoice_no_fieldcolumn}
{BEGIN commercial_invoice_date_fieldcolumn}
<td {$commercial_invoice_date_style}>
{$commercial_invoice_date_value}
</td>
{END commercial_invoice_date_fieldcolumn}
{BEGIN customer_purchase_order_no_fieldcolumn}
<td {$customer_purchase_order_no_style}>
{$customer_purchase_order_no_value}
</td>
{END customer_purchase_order_no_fieldcolumn}
{BEGIN bl_awb_no_fieldcolumn}
<td {$bl_awb_no_style}>
{$bl_awb_no_value}
</td>
{END bl_awb_no_fieldcolumn}
{BEGIN country_id_fieldcolumn}
<td {$country_id_style}>
{$country_id_value}
</td>
{END country_id_fieldcolumn}
{BEGIN export_date_fieldcolumn}
<td {$export_date_style}>
{$export_date_value}
</td>
{END export_date_fieldcolumn}
{BEGIN payment_term_fieldcolumn}
<td {$payment_term_style}>
{$payment_term_value}
</td>
{END payment_term_fieldcolumn}
{BEGIN export_references_fieldcolumn}
<td {$export_references_style}>
{$export_references_value}
</td>
{END export_references_fieldcolumn}
{BEGIN export_route_fieldcolumn}
<td {$export_route_style}>
{$export_route_value}
</td>
{END export_route_fieldcolumn}
{BEGIN package_marks_fieldcolumn}
<td {$package_marks_style}>
{$package_marks_value}
</td>
{END package_marks_fieldcolumn}
{BEGIN misc_charges_fieldcolumn}
<td {$misc_charges_style}>
{$misc_charges_value}
</td>
{END misc_charges_fieldcolumn}
{BEGIN certifications_fieldcolumn}
<td {$certifications_style}>
{$certifications_value}
</td>
{END certifications_fieldcolumn}
{BEGIN endrecord_block}
<td class="gridspacing">&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{END grid_row}
<!-- totals row -->
</table>
{END grid_block}
{END page}
{$footer}
{END body}
</body>
</html>